package com.microservice.salmon.db.mapper;

import com.microservice.salmon.db.entities.SysRole;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface SysRoleMapper extends Mapper<SysRole> {

    List<SysRole> getRoleByUsername(@Param("username") String username);

    List<SysRole> getRoleByUserId(@Param("userId") int userId);
}